<template>
  <div>
    <el-tabs v-model="component">
      <el-tab-pane label="详情" name="detail">
        <el-col v-if="rightObj.componentType === 'input'">
          <el-row>字段名称 :
            <el-input v-model="rightObj.labelText"></el-input>
          </el-row>
          <el-row>默认值 :
            <el-input v-model="rightObj.defaultValue"
                      @input="handleChangeObj(rightObj.defaultValue)"></el-input>
          </el-row>
        </el-col>
      </el-tab-pane>
      <el-tab-pane label="交互" name="interaction">
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "MyRightDraggable",
  props: {
    component: {
      type: String,
      default: ""
    },
    rightObj: {
      type: Object,
      default: () => {
      }
    },
  },
  methods: {
    handleChangeObj(item){
      this.$emit('handleChangeObj', item)
    }
  }
}
</script>

<style scoped>

</style>
